import { h, init } from 'snabbdom';

// patch是个核心函数
const patch = init([]);
// 创建虚拟dom
let vnode = h('div#container', 'Hello World');

const app = document.querySelector('#app');

let oldVnode = patch(app, vnode);

vnode = h('div', 'hello，glh');

patch(oldVnode, vnode);
